Remove deprecation guards around gtk_window_present
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Aug 2020 18:49:50 +0000 (14:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Aug 2020 18:49:50 +0000 (14:49 -0400)
It is not deprecated anymore.

gtk/gtkcolorbutton.c
gtk/gtkfilechooserbutton.c
gtk/gtkfilechoosernative.c
gtk/gtkfontbutton.c
gtk/gtkpagesetupunixdialog.c
gtk/gtkprintoperation.c
gtk/gtkprintunixdialog.c
gtk/gtkshow.c

index 511f26bd59013e0f7fddff837e585d49bfc6361a..6a59a62296d0b735dd357e30846c789209172534 100644 (file)
@@ -435,9 +435,7 @@ gtk_color_button_clicked (GtkButton *b,
 
   gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (button->cs_dialog), &button->rgba);
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_window_present (GTK_WINDOW (button->cs_dialog));
-  G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static void
index f57c8f2a927fe6817a38f154f922cde51c56094e..7df5603d59187513adb4f2de018cf3f20f9d98d4 100644 (file)
@@ -2639,11 +2639,7 @@ open_dialog (GtkFileChooserButton *button)
 
   gtk_widget_set_sensitive (button->combo_box, FALSE);
   if (button->dialog)
-    {
-      G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-      gtk_window_present (GTK_WINDOW (button->dialog));
-      G_GNUC_END_IGNORE_DEPRECATIONS
-    }
+    gtk_window_present (GTK_WINDOW (button->dialog));
   else
     gtk_native_dialog_show (GTK_NATIVE_DIALOG (button->native));
 }
index 08512ee0797ae799475efce2cf90f73263db70ff..2ab10d0b9632f7259aeffc1c3a8bf83223e77772 100644 (file)
@@ -591,9 +591,7 @@ show_dialog (GtkFileChooserNative *self)
                     G_CALLBACK (dialog_response_cb),
                     self);
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_window_present (GTK_WINDOW (self->dialog));
-  G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 static void
index 0dcb9723d094962729eb3f4bc3d6a43820ac5925..dc842eb7377deeacd4da7fd0a68368f3c3c6fcc7 100644 (file)
@@ -975,9 +975,7 @@ gtk_font_button_clicked (GtkButton *button,
       gtk_font_chooser_set_font_desc (font_dialog, font_button->font_desc);
     }
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_window_present (GTK_WINDOW (font_button->font_dialog));
-  G_GNUC_END_IGNORE_DEPRECATIONS
 }
 
 
index 6cce41b50f50f0ed6bbd3292831801145b14a924..190a9f7e9afa893038ff04a33175bc7112781fc9 100644 (file)
@@ -686,9 +686,7 @@ paper_size_changed (GtkDropDown            *combo_box,
           /* And show the custom paper dialog */
           custom_paper_dialog = _gtk_custom_paper_unix_dialog_new (GTK_WINDOW (dialog), NULL);
           g_signal_connect (custom_paper_dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb), dialog);
-          G_GNUC_BEGIN_IGNORE_DEPRECATIONS
           gtk_window_present (GTK_WINDOW (custom_paper_dialog));
-          G_GNUC_END_IGNORE_DEPRECATIONS
 
           return;
         }
index 56547c2403675b09db08d0c83b0576e15e199a7f..3ffcfa45d2f55a85c5ea1e5ef197e4e21b825738 100644 (file)
@@ -2809,9 +2809,7 @@ handle_progress_response (GtkWidget *dialog,
 static gboolean
 show_progress_timeout (PrintPagesData *data)
 {
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS
   gtk_window_present (GTK_WINDOW (data->progress));
-  G_GNUC_END_IGNORE_DEPRECATIONS
 
   data->op->priv->show_progress_timeout_id = 0;
 
index 23e43d9877f8a66e94934cc161f7866015d0cc66..5375926db40d0ee2c396c8d6f692ad16692b2e9e 100644 (file)
@@ -2992,9 +2992,7 @@ paper_size_changed (GtkDropDown *combo_box,
           /* And show the custom paper dialog */
           custom_paper_dialog = _gtk_custom_paper_unix_dialog_new (GTK_WINDOW (dialog), _("Manage Custom Sizes"));
           g_signal_connect (custom_paper_dialog, "response", G_CALLBACK (custom_paper_dialog_response_cb), dialog);
-          G_GNUC_BEGIN_IGNORE_DEPRECATIONS
           gtk_window_present (GTK_WINDOW (custom_paper_dialog));
-          G_GNUC_END_IGNORE_DEPRECATIONS
 
           g_object_unref (page_setup);
 
index 4de007fa95996018575845ecf8aa68b6c0fa4026..0160a8fe9d4a25d1b503acab81d8204108f93b9e 100644 (file)
@@ -181,9 +181,7 @@ show_uri_done (GObject      *object,
       g_signal_connect (dialog, "response",
                         G_CALLBACK (gtk_window_destroy), NULL);
 
-      G_GNUC_BEGIN_IGNORE_DEPRECATIONS
       gtk_window_present (GTK_WINDOW (dialog));
-      G_GNUC_END_IGNORE_DEPRECATIONS
     }
 }